package com.example.ball.Dao;

import com.example.ball.Entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao {

    @Select("SELECT * FROM user WHERE username = #{username} AND password = #{password} LIMIT 1;")
    public User checkLogin(@Param("username") String username, @Param("password") String password);

}
